Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class com.pacist.diamonds.BookEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.pacist.diamonds.BookEvent

public class BookEvent
extends java.util.EventObject
Event fired by a Book when the current page is changed.

See Also:
Serialized Form

Field Summary
static int BOOKEVENT_FIRST
          Marks the first integer id for the range of Book event ids.
static int BOOKEVENT_LAST
          Marks the last integer id for the range of Book event ids.
static int PAGE_TURNED
          Marks the page turned id for the range of Book event ids.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BookEvent(java.lang.Object source, int type)
          Constructs an BookEvent object with the specified source object.
BookEvent(java.lang.Object source, int type, java.awt.Component oldPage, java.awt.Component newPage)
          Constructs an BookEvent object with the specified source object.
 
Method Summary
int getID()
          Returns the event type.
java.awt.Component getNewPage()
          Returns the new current page.
java.awt.Component getOldPage()
          Returns the old current page.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Field Detail

BOOKEVENT_FIRST

protected static final int BOOKEVENT_FIRST
Marks the first integer id for the range of Book event ids.

BOOKEVENT_LAST

protected static final int BOOKEVENT_LAST
Marks the last integer id for the range of Book event ids.

PAGE_TURNED

public static final int PAGE_TURNED
Marks the page turned id for the range of Book event ids.
Constructor Detail

BookEvent

public BookEvent(java.lang.Object source,
                 int type)
Constructs an BookEvent object with the specified source object.
Parameters:
source - the object where the event originated
type - the type of event

BookEvent

public BookEvent(java.lang.Object source,
                 int type,
                 java.awt.Component oldPage,
                 java.awt.Component newPage)
Constructs an BookEvent object with the specified source object.
Parameters:
source - the object where the event originated
type - the type of event
oldPage - the "old" current page
newPage - the "new" current page
Method Detail

getID

public int getID()
Returns the event type.

getOldPage

public java.awt.Component getOldPage()
Returns the old current page.
Returns:
the old current page.

getNewPage

public java.awt.Component getNewPage()
Returns the new current page.
Returns:
the new current page.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD